<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>12元素显示方式</title>
    <style>
        div {
            border: 1px solid red;
            width: 100px;

        }

        span {
            border: 1px solid red;
            width: 100px;
            height: 100px;
            /*行内元素默认不能修改宽高,
            可以修改display的值为block块级或inline-block行内块后 在进行修改宽高*/
            /*display: block;*/
            display: inline-block;
        }

        img {
            width: 100px;
            height: 100px;
            /*隐藏元素*/
            display: none;
        }
        a{
            background-color: #0aa1ed;
            width: 132px;
            height: 40px;
            display: block;
            text-align: center;
            line-height: 40px;
            color: white;
            font-size: 20px;
            border-radius: 3px;
        }
    </style>
</head>
<body>
<a href="">查看详情</a>
<img src="img1.png">
<img src="img1.png">
<img src="img1.png">
<div>div1</div>
<div>div2</div>
<div>div3</div>
<span>span1</span>
<span>span2</span>
<span>span3</span>
</body>
</html>